package 继承性.exer2;

public class Text {
    public static void main(String[] args) {
        Cylinder c1 = new Cylinder();
        c1.setRadius(6);
        c1.setLength(3);
        System.out.println("这个圆柱的体积为："+c1.tiji());

        Cylinder c2 = new Cylinder();
        c2.setRadius(3);
        System.out.println("这个圆的面积为："+c2.mianji());

    }
}
